package cn.itsource.org.mapper;

import cn.itsource.basic.basicMapper.BasicMapper;
import cn.itsource.org.domain.Department;
import cn.itsource.org.domain.Employee;
import cn.itsource.org.query.DepartmentQuery;
import cn.itsource.org.query.EmployeeQuery;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

public interface EmployeeMapper extends BasicMapper<Employee> {
    List<Employee> findManagers();
    List<Employee> findPage(EmployeeQuery query);
    /**
     *     验证手机号,邮箱,手机号是否有重复
     */
//    验证手机号
     Employee accountingCheck(Employee admin);
//     验证邮箱
     Employee emailCheck(Employee admin);
//     验证手机号
     Employee phoneCheck(Employee admin);
//     登录账号检测
    @Select("select * from t_employee where username = #{username}" )
    Employee loginCheck(Employee admin);

}
